package drds.common.db.sql_mapping.dynamic_tag.tag_handler;

import drds.common.db.sql_mapping.dynamic_tag.tag.BindTag;
import drds.common.db.sql_mapping.dynamic_tag.tag.Tag;
import drds.common.db.sql_mapping.dynamic_tag.xml_node.XmlNode;

import java.util.List;


public class BindTagHandler implements TagHandler {
    public BindTagHandler() {
    }

    @Override
    public void handleNode(XmlNode xmlNodeToHandle, List<Tag> tagList) {
        final String name = xmlNodeToHandle.getStringAttribute("name");
        final String value = xmlNodeToHandle.getStringAttribute("value");
        final BindTag bindTag = new BindTag(name, value);
        tagList.add(bindTag);
    }
}
